<!-- src/App.vue -->
<template>
  <!-- 只在非登录页显示 Navbar -->
  <Navbar v-if="showNavbar" />
  <router-view />
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import Navbar from './components/Navbar.vue'

// 获取当前路由信息
const route = useRoute()

// 判断当前路径是否是登录页
const showNavbar = computed(() => route.path !== '/' && route.path !== '/')
</script>
